const axios = require('axios').default;
const baseURL = require('./baseURL.js')
axios.defaults.baseURL = baseURL;
// 定义token
if (sessionStorage.getItem('token')) {
    let token = sessionStorage.getItem('token')
    console.log(token);
    axios.defaults.headers.common['Authorization'] = 'Beare ' + token
}
// axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
// 挂载
window.axios = axios;